package com.example.launchmodedemo

import android.app.Application
import android.content.Context
import android.util.Log

class App : Application() {
    companion object{
        var context:Context? = null
        var list = ArrayList<Context>()
        fun add(context: Context)
        {
            list.add(context)
        }
    }
    override fun onCreate() {
        super.onCreate()
        Log.v("Appxx", "onCreate")
    }

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        Log.v("Appxx", "attachBaseContext")
    }
}